<script setup lang="ts">
import { ref } from 'vue';
import Child from './components/Child.vue';
const car = ref('玛莎拉蒂')
const money= ref(100)

const changeMoney = (val:number) => {
  console.log('要花钱', val);
  
}
</script>

<template>
  <div class="app-page">
    app
    <Child :money="money" @change-money="changeMoney"></Child>
  </div>
</template>

<style lang="scss" scoped></style>
